package com.sdleyou.treepro.common.service;

import com.sdleyou.treepro.common.model.dao.Page;
import com.sdleyou.treepro.common.model.vo.FriendVO;
import com.sdleyou.treepro.common.model.vo.NearbyVO;
import com.sdleyou.treepro.common.model.vo.UserVO;

import java.util.List;
import java.util.Map;

public interface UserFriendManager {

    /**
     * 好友列表
     */
    Page<FriendVO> getUserFriendList(String userId, Integer pageNum, Integer pageSize);

    /**
     * 添加好友
     */
    Map<String, String> addFriend(String userId, String friendId, String resource);

    /**
     * 附近的人
     */
    List<NearbyVO> getNearby(String userId, Double userLng, Double userLat, Double distance);

    /**
     * 更新好友数据
     */
    void update(String userId, String name, String face);
}
